﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;


public partial class EncryCode : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            TextBox1.Text = @"Data Source=192.168.16.204;Initial Catalog=lvshoushop;User ID=brmdp;Password=;Connect Timeout=200;Max Pool Size=100;pooling=true;";
        }
    }

    protected void Button1_Click(object sender, EventArgs e)
    {
        TextBox2.Text = CEncrypt.EncryString(TextBox1.Text);
    }
    protected void Button2_Click(object sender, EventArgs e)
    {
        TextBox3.Text = CEncrypt.DecryString(TextBox2.Text);
    }
}